import request from '@/utils/request'

// 查询机组统计列表
export function listCount(query) {
  return request({
    url: '/service/unit-count/list',
    method: 'get',
    params: query
  })
}

// 查询机组统计详细
export function getCount(unitCountId) {
  return request({
    url: '/service/unit-count/' + unitCountId,
    method: 'get'
  })
}

// 新增机组统计
export function addCount(data) {
  return request({
    url: '/service/unit-count',
    method: 'post',
    data: data
  })
}

// 修改机组统计
export function updateCount(data) {
  return request({
    url: '/service/unit-count',
    method: 'put',
    data: data
  })
}

// 删除机组统计
export function delCount(unitCountId) {
  return request({
    url: '/service/unit-count/' + unitCountId,
    method: 'delete'
  })
}
